package binary;

public class BinaryDemo {
    public static void main(String[] args) {
//        int a = 55;
//        System.out.println(Integer.toBinaryString(a));//00110111
//        System.out.println(a);
//        a++;
//        System.out.println(Integer.toBinaryString(a));
//        System.out.println(a);

        byte b = 0b0111_1111;
        System.out.println(b);
        System.out.println(Integer.toBinaryString(b));
        b++;
        System.out.println(b);
        System.out.println(Integer.toBinaryString((byte)b));
    }
}
